package com.zigong.app.ui.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.ruihang.generalibrary.ui.adapter.BaseHolderAbsAdapter;
import com.ruihang.generalibrary.ui.adapter.BaseRecylerAdapter;
import com.ruihang.generalibrary.ui.util.OnItemInternalClick;
import com.zigong.app.R;
import com.zigong.app.beans.NewsItem;
import com.zigong.app.ui.adapter.holder.CityStaHomepageHolder;
import com.zigong.app.ui.datainf.IHour24Data;
import com.zigong.app.ui.util.IListShowData;

import java.util.List;

/**
 * Created by Administrator on 2017/7/17 0017.
 */

public class CityStaHomepageAdapter extends BaseHolderAbsAdapter<NewsItem, CityStaHomepageHolder> {
    public CityStaHomepageAdapter(Context context, List<NewsItem> list) {
        super(context, list);
    }

    @Override
    public CityStaHomepageHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(context).inflate(R.layout.item_city_sta_homepage, parent, false);
        CityStaHomepageHolder homepageHolder = new CityStaHomepageHolder(context, view);
        return homepageHolder;
    }
}
